﻿@model blacksoft.Models.ProgramacionViaje_x_Personal

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Asignar Personal</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

    <div class="form-horizontal">

        <hr />
        @Html.ValidationSummary(true)

        @*
            <div class="form-group">
                @Html.LabelFor(model => model.IDProgramacionViaje, "IDProgramacionViaje", new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.DropDownList("IDProgramacionViaje", String.Empty)
                    @Html.ValidationMessageFor(model => model.IDProgramacionViaje)
                </div>
            </div>
        *@

        <div class="form-group">
            @Html.LabelFor(model => model.IDPersona, "DNI", new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.DropDownList("IDPersona", String.Empty)
                @Html.ValidationMessageFor(model => model.IDPersona)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Estado, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Estado)
                @Html.ValidationMessageFor(model => model.Estado)
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Create" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Regresar", "Index")
</div>
